﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTOFrameworks;
using FAQFrameworks;
using FooFun.DataElements.Dtos;

namespace FooFun.Web.Controls
{
    public class MessageSpan : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            string msg = MessageUtil.GetMessage();

            if (!string.IsNullOrEmpty(msg))
            {
                StringDataElement de = new StringDataElement(msg);
                base.DataElement = de;
            }
            else
            {
                base.DataElement = new EmptyDataElement();
            }
        }
    }
}
